package com.aos.erp.manager.remote.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @program: erp
 * @description:用户角色
 * @author: tanzhiyu
 * @create: 2018-11-21 16:04
 **/
@Getter
@Setter
@ApiModel("用户角色")
public class User implements Serializable {
    public User() {
    }

    @Override
    public String toString() {
        return "UserRole{" +
                "orgNameList=" + orgNameList +
                ", orgIdList=" + orgIdList +
                ", roleIdList=" + roleIdList +
                ", roleNameList=" + roleNameList +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", salt='" + salt + '\'' +
                ", name='" + name + '\'' +
                ", appCode='" + appCode + '\'' +
                ", usernames='" + usernames + '\'' +
                ", createdTime=" + createdTime +
                ", updatedTime=" + updatedTime +
                ", lastLoginTime=" + lastLoginTime +
                ", mobile='" + mobile + '\'' +
                ", comment='" + comment + '\'' +
                ", state=" + state +
                ", creater='" + creater + '\'' +
                ", operator='" + operator + '\'' +
                '}';
    }

    public User(List<String> orgNameList, List<Long> orgIdList, List<Long> roleIdList, List<String> roleNameList, String username, String password, String salt, String name, String appCode, String usernames, Date createdTime, Date updatedTime, Date lastLoginTime, String mobile, String comment, Integer state, String creater, String operator) {
        this.orgNameList = orgNameList;
        this.orgIdList = orgIdList;
        this.roleIdList = roleIdList;
        this.roleNameList = roleNameList;
        this.username = username;
        this.password = password;
        this.salt = salt;
        this.name = name;
        this.appCode = appCode;
        this.usernames = usernames;
        this.createdTime = createdTime;
        this.updatedTime = updatedTime;
        this.lastLoginTime = lastLoginTime;
        this.mobile = mobile;
        this.comment = comment;
        this.state = state;
        this.creater = creater;
        this.operator = operator;
    }

    private List<String> orgNameList;
    private List<Long> orgIdList;
    private List<Long> roleIdList;
    private List<String> roleNameList;

    @ApiModelProperty(value = "登陆账号")
    private String username;

    @ApiModelProperty(value = "登陆密码")
    private String password;

    @ApiModelProperty(value = "密码加盐")
    private String salt;

    @ApiModelProperty(value = "用户名字")
    private String name;

    @ApiModelProperty(value = "应用code")
    private String appCode;

    @ApiModelProperty(value = "当前登录用户用户登录名")
    private String usernames;

    private Date createdTime;
    private  Date updatedTime;
    private Date lastLoginTime;
    private String mobile;
    private String comment;
    private Integer state;
    private String creater;
    private String operator;
}
